package com.han.neo4jjava.neo4j.person;

import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

import java.util.List;

public interface PersonDao extends Neo4jRepository<PersonModel, Long> {

    List<PersonModel> findAllByName(String name);

    @Query("match (n) detach delete n")
    void drop();
}
